﻿using Resn.WhuPub.BLL;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using Resn.WhuPub.DML;
using Resn.WhuPub.BIL;
using System.Collections.Generic;

namespace Resn.WhuPub.UnitTest
{
    
    
    /// <summary>
    ///这是 ContactTest 的测试类，旨在
    ///包含所有 ContactTest 单元测试
    ///</summary>
        [TestClass()]
        public class ContactTest
        {


                private TestContext testContextInstance;

                /// <summary>
                ///获取或设置测试上下文，上下文提供
                ///有关当前测试运行及其功能的信息。
                ///</summary>
                public TestContext TestContext
                {
                        get
                        {
                                return testContextInstance;
                        }
                        set
                        {
                                testContextInstance = value;
                        }
                }

                #region 附加测试特性
                // 
                //编写测试时，还可使用以下特性:
                //
                //使用 ClassInitialize 在运行类中的第一个测试前先运行代码
                //[ClassInitialize()]
                //public static void MyClassInitialize(TestContext testContext)
                //{
                //}
                //
                //使用 ClassCleanup 在运行完类中的所有测试后再运行代码
                //[ClassCleanup()]
                //public static void MyClassCleanup()
                //{
                //}
                //
                //使用 TestInitialize 在运行每个测试前先运行代码
                //[TestInitialize()]
                //public void MyTestInitialize()
                //{
                //}
                //
                //使用 TestCleanup 在运行完每个测试后运行代码
                //[TestCleanup()]
                //public void MyTestCleanup()
                //{
                //}
                //
                #endregion


                /// <summary>
                ///Contact 构造函数 的测试
                ///</summary>
                [TestMethod()]
                public void ContactConstructorTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model);
                        Assert.Inconclusive("TODO: 实现用来验证目标的代码");
                }

                /// <summary>
                ///CreateBook 的测试
                ///</summary>
                [TestMethod()]
                public void CreateBookTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model); // TODO: 初始化为适当的值
                        string name = string.Empty; // TODO: 初始化为适当的值
                        PartakeType partakeType = new PartakeType(); // TODO: 初始化为适当的值
                        string publisher = string.Empty; // TODO: 初始化为适当的值
                        IBook expected = null; // TODO: 初始化为适当的值
                        IBook actual;
                        actual = target.CreateBook(name, partakeType, publisher);
                        Assert.AreEqual(expected, actual);
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///CreateBookDelivery 的测试
                ///</summary>
                [TestMethod()]
                public void CreateBookDeliveryTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model); // TODO: 初始化为适当的值
                        string bookId = string.Empty; // TODO: 初始化为适当的值
                        int count = 0; // TODO: 初始化为适当的值
                        string deliveryNumber = string.Empty; // TODO: 初始化为适当的值
                        DateTime deliveryTime = new DateTime(); // TODO: 初始化为适当的值
                        IBookDelivery expected = null; // TODO: 初始化为适当的值
                        IBookDelivery actual;
                        actual = target.CreateBookDelivery(bookId, count, deliveryNumber, deliveryTime);
                        Assert.AreEqual(expected, actual);
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///CreateEducational 的测试
                ///</summary>
                [TestMethod()]
                public void CreateEducationalTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model); // TODO: 初始化为适当的值
                        string graduateSchool = string.Empty; // TODO: 初始化为适当的值
                        EducationalLevel educationalLevel = new EducationalLevel(); // TODO: 初始化为适当的值
                        string majorId = string.Empty; // TODO: 初始化为适当的值
                        DateTime startTime = new DateTime(); // TODO: 初始化为适当的值
                        DateTime endTime = new DateTime(); // TODO: 初始化为适当的值
                        IEducational expected = null; // TODO: 初始化为适当的值
                        IEducational actual;
                        actual = target.CreateEducational(graduateSchool, educationalLevel, majorId, startTime, endTime);
                        Assert.AreEqual(expected, actual);
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///CreateFeedback 的测试
                ///</summary>
                [TestMethod()]
                public void CreateFeedbackTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model); // TODO: 初始化为适当的值
                        FeedbackType feedbackType = new FeedbackType(); // TODO: 初始化为适当的值
                        string feedbackContent = string.Empty; // TODO: 初始化为适当的值
                        string enteringEmployeeId = string.Empty; // TODO: 初始化为适当的值
                        string approveEmployeeId = string.Empty; // TODO: 初始化为适当的值
                        IFeedback expected = null; // TODO: 初始化为适当的值
                        IFeedback actual;
                        actual = target.CreateFeedback(feedbackType, feedbackContent, enteringEmployeeId, approveEmployeeId);
                        Assert.AreEqual(expected, actual);
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///Select 的测试
                ///</summary>
                [TestMethod()]
                public void SelectTest()
                {
                        string id = string.Empty; // TODO: 初始化为适当的值
                        Contact expected = null; // TODO: 初始化为适当的值
                        Contact actual;
                        actual = Contact.Select(id);
                        Assert.AreEqual(expected, actual);
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///Books 的测试
                ///</summary>
                [TestMethod()]
                public void BooksTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model); // TODO: 初始化为适当的值
                        List<IBook> actual;
                        actual = target.Books;
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///Corporate 的测试
                ///</summary>
                [TestMethod()]
                public void CorporateTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model); // TODO: 初始化为适当的值
                        ICorporate actual;
                        actual = target.Corporate;
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///CorporateBranch 的测试
                ///</summary>
                [TestMethod()]
                public void CorporateBranchTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model); // TODO: 初始化为适当的值
                        ICorporateBranch actual;
                        actual = target.CorporateBranch;
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///Department 的测试
                ///</summary>
                [TestMethod()]
                public void DepartmentTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model); // TODO: 初始化为适当的值
                        IDepartment actual;
                        actual = target.Department;
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///DepartmentId 的测试
                ///</summary>
                [TestMethod()]
                public void DepartmentIdTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model); // TODO: 初始化为适当的值
                        string actual;
                        actual = target.DepartmentId;
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///Duty 的测试
                ///</summary>
                [TestMethod()]
                public void DutyTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model); // TODO: 初始化为适当的值
                        string expected = string.Empty; // TODO: 初始化为适当的值
                        string actual;
                        target.Duty = expected;
                        actual = target.Duty;
                        Assert.AreEqual(expected, actual);
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///Educationals 的测试
                ///</summary>
                [TestMethod()]
                public void EducationalsTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model); // TODO: 初始化为适当的值
                        List<IEducational> actual;
                        actual = target.Educationals;
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///Email 的测试
                ///</summary>
                [TestMethod()]
                public void EmailTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model); // TODO: 初始化为适当的值
                        string expected = string.Empty; // TODO: 初始化为适当的值
                        string actual;
                        target.Email = expected;
                        actual = target.Email;
                        Assert.AreEqual(expected, actual);
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///Feedbacks 的测试
                ///</summary>
                [TestMethod()]
                public void FeedbacksTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model); // TODO: 初始化为适当的值
                        List<IFeedback> actual;
                        actual = target.Feedbacks;
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///IsOwnAuthor 的测试
                ///</summary>
                [TestMethod()]
                public void IsOwnAuthorTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model); // TODO: 初始化为适当的值
                        bool expected = false; // TODO: 初始化为适当的值
                        bool actual;
                        target.IsOwnAuthor = expected;
                        actual = target.IsOwnAuthor;
                        Assert.AreEqual(expected, actual);
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///IsTeacher 的测试
                ///</summary>
                [TestMethod()]
                public void IsTeacherTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model); // TODO: 初始化为适当的值
                        bool actual;
                        actual = target.IsTeacher;
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///Memo 的测试
                ///</summary>
                [TestMethod()]
                public void MemoTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model); // TODO: 初始化为适当的值
                        string expected = string.Empty; // TODO: 初始化为适当的值
                        string actual;
                        target.Memo = expected;
                        actual = target.Memo;
                        Assert.AreEqual(expected, actual);
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///Model 的测试
                ///</summary>
                [TestMethod()]
                [DeploymentItem("Resn.WhuPub.BLL.dll")]
                public void ModelTest()
                {
                        PrivateObject param0 = null; // TODO: 初始化为适当的值
                        Contact_Accessor target = new Contact_Accessor(param0); // TODO: 初始化为适当的值
                        ContactModel expected = null; // TODO: 初始化为适当的值
                        ContactModel actual;
                        target.Model = expected;
                        actual = target.Model;
                        Assert.AreEqual(expected, actual);
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///Name 的测试
                ///</summary>
                [TestMethod()]
                public void NameTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model); // TODO: 初始化为适当的值
                        string expected = string.Empty; // TODO: 初始化为适当的值
                        string actual;
                        target.Name = expected;
                        actual = target.Name;
                        Assert.AreEqual(expected, actual);
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///QQ 的测试
                ///</summary>
                [TestMethod()]
                public void QQTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model); // TODO: 初始化为适当的值
                        string expected = string.Empty; // TODO: 初始化为适当的值
                        string actual;
                        target.QQ = expected;
                        actual = target.QQ;
                        Assert.AreEqual(expected, actual);
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///SoicalAppointments 的测试
                ///</summary>
                [TestMethod()]
                public void SoicalAppointmentsTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model); // TODO: 初始化为适当的值
                        string expected = string.Empty; // TODO: 初始化为适当的值
                        string actual;
                        target.SoicalAppointments = expected;
                        actual = target.SoicalAppointments;
                        Assert.AreEqual(expected, actual);
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///Telephone 的测试
                ///</summary>
                [TestMethod()]
                public void TelephoneTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model); // TODO: 初始化为适当的值
                        string expected = string.Empty; // TODO: 初始化为适当的值
                        string actual;
                        target.Telephone = expected;
                        actual = target.Telephone;
                        Assert.AreEqual(expected, actual);
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }

                /// <summary>
                ///Title 的测试
                ///</summary>
                [TestMethod()]
                public void TitleTest()
                {
                        ContactModel model = null; // TODO: 初始化为适当的值
                        Contact target = new Contact(model); // TODO: 初始化为适当的值
                        string expected = string.Empty; // TODO: 初始化为适当的值
                        string actual;
                        target.Title = expected;
                        actual = target.Title;
                        Assert.AreEqual(expected, actual);
                        Assert.Inconclusive("验证此测试方法的正确性。");
                }
        }
}
